#!/usr/bin/env bash
#
while true; do
    MEMORY_USAGE=$(free | awk '/Mem/{printf "%.2f", $3/$2 * 100}')

    echo "MEM: $MEMORY_USAGE%"

    sleep 1
done
